<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.firstsoft.modules.portal.domain.PortalSolution" table="portal_solution">
      <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
		         <param name="sequence">PORTAL_SOLUTION_ID_SEQ</param>
            </generator>
        </id>
        <property name="layout" type="integer">
        	<column name="layout"/>
        </property>
        <property name="position" type="text">
        	<column name="position"/>
        </property>
        <property name="userId" type="integer">
        	<column name="user_id" />
        </property>
        
        <many-to-one name="page" class="cn.firstsoft.modules.portal.domain.Page" fetch="select">
            <column name="page_id" />
        </many-to-one>
    </class>
</hibernate-mapping>
